package com.oem.fragment.model.file;

public class MediaFile {
    private String filePath;
    private String bucket;
    private String fileType;

    public String getFullUrl() {
        return "http://192.168.4.228:9000/" + bucket + "/" + filePath;
    }

    public boolean isImage() {
        return fileType.startsWith("image");
    }

    public boolean isVideo() {
        return fileType.startsWith("video");
    }

    public String getBucket(){
        return bucket;
    }

    public String getFilePath(){
        return filePath;
    }
}
